FROM python:3.6-stretch

COPY ./requirements.txt /app/requirements.txt
COPY ./Dockerfile /app/Dockerfile
COPY ./README.md /app/README.txt
COPY ./consumer.py /app/consumer.py

RUN mkdir "/app/log"

RUN pip install -r /app/requirements.txt -i http://mirrors.aliyun.com/pypi/simple/ --trusted-host mirrors.aliyun.com
WORKDIR /app
EXPOSE 7900
ENTRYPOINT ["python", "consumer.py"]




